package com.imooc.spring.classone;

public class XiaoDi2 implements XiaoDi{

    public int calculate(int a, int b) {
        System.out.println(this.getClass().getName() + ": I'm beginning to calculate");
        int result = 0;
        for (int i = 0; i < a; i++) {
            result = result + b;
        }
        return result;
    }

}
